projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c0a402
)
gizmo: Chain up in snapshot if no snapshot func given
author
Timm Bäder
<mail@baedert.org>
Thu, 11 May 2017 19:49:37 +0000
(21:49 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:12 +0000
(21:27 -0400)
I.e. when gizmo users just want to draw child widgets anyway and don't
do any custom drawing, they can simply pass NULL.
gtk/gtkgizmo.c
patch
|
blob
|
history
diff --git
a/gtk/gtkgizmo.c
b/gtk/gtkgizmo.c
index 5c065e5fd930bb372eae4fa0385ddf9e00c1b5b2..38cd3d56b1c1a05c37370b3f4ab54effa6f0f15a 100644
(file)
--- a/
gtk/gtkgizmo.c
+++ b/
gtk/gtkgizmo.c
@@
-46,6
+46,8
@@
gtk_gizmo_snapshot (GtkWidget *widget,
if (self->snapshot_func)
self->snapshot_func (self, snapshot);
+ else
+ GTK_WIDGET_CLASS (gtk_gizmo_parent_class)->snapshot (widget, snapshot);
}
static void